package com.yuda.operationcenter.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yuda.common.core.annotation.Excel;
import com.yuda.common.core.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * banner配置对象 oper_banner
 *
 * @author wyn
 * @date 2021-04-12
 */
public class OperBanner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "Banner名称")
    private String bannerName;

    /** 按此字段排序 值越小排序越靠前 */
    @Excel(name = "按此字段排序 值越小排序越靠前")
    private Long orderNo;
/*
    *//** 状态 0 下架  1上架 *//*
    @Excel(name = "状态 0 下架  1上架")
    private Integer status;*/

    /** 上架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date showBeginTime;

    /** 下架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Excel(name = "下架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date showEndTime;

    /** url类型 0 外链 1内链 */
    @Excel(name = "url类型 0 外链 1内链")
    private Integer urlType;

    /** url类型 0 外链 1内链 */
    @Excel(name = "banner图的url")
    private String bannerUrl;

    /** 外链的url */
    @Excel(name = "外链的url")
    private String outLineUrl;

    /** 内链资讯地址 */
    @Excel(name = "内链资讯地址")
    private String innerLineUrl;

    @Excel(name = " 1：上架 2：待上架 3：下架")
    private Integer onSell;

    @Excel(name = "点击量")
    private Integer hitCounts;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBannerName(String bannerName)
    {
        this.bannerName = bannerName;
    }

    public String getBannerName()
    {
        return bannerName;
    }
    public void setOrderNo(Long orderNo)
    {
        this.orderNo = orderNo;
    }

    public Long getOrderNo()
    {
        return orderNo;
    }

    public void setShowBeginTime(Date showBeginTime)
    {
        this.showBeginTime = showBeginTime;
    }

    public Date getShowBeginTime()
    {
        return showBeginTime;
    }
    public void setShowEndTime(Date showEndTime)
    {
        this.showEndTime = showEndTime;
    }

    public Date getShowEndTime()
    {
        return showEndTime;
    }
    public void setUrlType(Integer urlType)
    {
        this.urlType = urlType;
    }

    public Integer getUrlType()
    {
        return urlType;
    }
    public void setOutLineUrl(String outLineUrl)
    {
        this.outLineUrl = outLineUrl;
    }

    public String getOutLineUrl()
    {
        return outLineUrl;
    }
    public void setInnerLineUrl(String innerLineUrl)
    {
        this.innerLineUrl = innerLineUrl;
    }

    public String getInnerLineUrl()
    {
        return innerLineUrl;
    }
    public void setOnSell(Integer onSell)
    {
        this.onSell = onSell;
    }

    public Integer getOnSell()
    {
        return onSell;
    }

    public String getBannerUrl() {
        return bannerUrl;
    }

    public void setBannerUrl(String bannerUrl) {
        this.bannerUrl = bannerUrl;
    }

    public Integer getHitCounts() {
        return hitCounts;
    }
    public void setHitCounts(Integer hitCounts) {
    this.hitCounts = hitCounts;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bannerName", getBannerName())
            .append("orderNo", getOrderNo())
            .append("bannerUrl",getBannerUrl())
            .append("showBeginTime", getShowBeginTime())
            .append("showEndTime", getShowEndTime())
            .append("urlType", getUrlType())
            .append("outLineUrl", getOutLineUrl())
            .append("innerLineUrl", getInnerLineUrl())
            .append("onSell", getOnSell())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("hitCounts",getHitCounts())
            .toString();
    }
}
